import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
//引入layout主组件
import layout from '@/components/layout'
import index from '@/pages/index'



Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/layout',//路径
      name: 'layout',
      component: layout//组件layout
    },
    {
      path:'/index',
      // name:"index",
      rested:"index",//重置路由
      
    },
    {
      path:'/',
      name:'index',
      component:index,
    }
    
  ]
})
